package cn.edu.zzuli.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel("接单实体")
@Data
@TableName("run_order")
@NoArgsConstructor
@AllArgsConstructor
public class RunOrder {

    @TableId
    @ApiModelProperty("订单编号")
    private Integer roid;

    @ApiModelProperty("用户编号")
    private Integer ruid;

    @ApiModelProperty("接单时间")
    private String runTime;

    @ApiModelProperty("完成时间")
    private String finishTime;

    @ApiModelProperty("订单的状态")
    private Integer status;

    @ApiModelProperty("逻辑删除")
    //@TableLogic
    private Integer deleted;

    public RunOrder(Integer id, Integer status){
        this.roid = id;
        this.status = status;
    }

    public RunOrder(String finishTime, Integer id){
        this.finishTime = finishTime;
        this.roid = id;
    }
}
